package com.neusoft.demo3;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        System.out.println("************************************");
        System.out.println("1.AAAAAA");
        System.out.println("2.BBBBBB");
        System.out.println("3.CCCCCC");
        System.out.println("************************************");
        Scanner input = new Scanner(System.in);
        System.out.println("请选择输入数字：");
        boolean isRight;
        do {
            isRight = true;
            int choice = input.nextInt();
            if (choice == 1){
                System.out.println("AAAAAA");
            }else if (choice == 2){
                System.out.println("BBBBBB");
            }else if (choice == 3){
                System.out.println("CCCCCC");
            }else {
                System.out.println("error......请重新输入");
                isRight = false;
            }
        }while (!isRight);
    }
}
